package com.kx.center.entity.shop;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kx.center.common.JsonDatetimeSerializer;
import com.kx.center.entity.Food;

/**
 * Created by acmen on 16-1-12.
 */
public class ShopOrderGoods {

    private int id;
    private int orderId;
    private int goodsId;
    private String goodsSku;
    private String goodsName;
    private int num;
    private double goodsBasePrice;
    private double goodsPrice;
    private double goodsPayPrice;
    private String picture;
    private Date createTime;
    private Date updateTime;
    
    public Food food;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }
    
    public String getGoodsSku() {
		return goodsSku;
	}

	public void setGoodsSku(String goodsSku) {
		this.goodsSku = goodsSku;
	}

	public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getGoodsBasePrice() {
        return goodsBasePrice;
    }

    public void setGoodsBasePrice(double goodsBasePrice) {
        this.goodsBasePrice = goodsBasePrice;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public double getGoodsPayPrice() {
        return goodsPayPrice;
    }

    public void setGoodsPayPrice(double goodsPayPrice) {
        this.goodsPayPrice = goodsPayPrice;
    }
    
    public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	@JsonSerialize(using = JsonDatetimeSerializer.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @JsonSerialize(using = JsonDatetimeSerializer.class)
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

	public Food getFood() {
		return food;
	}

	public void setFood(Food food) {
		this.food = food;
	}
    
}
